package cn.ztf.zshop.sys.dao;


import cn.ztf.zshop.sys.po.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysMenuDao extends BaseMapper<Menu> {
    /**
     *  根据角色id 查询菜单list
     * @param roleId
     * @return
     */
    List<Menu> selectMenuByRole(Long roleId);

    List<String> getPermissionByUserId(Long id);

    /**
     * 查询所有权限
     * @return
     */
    List<Menu> findAllPermission();

}
